<template>
  <view :class="{'absolute':type=='absolute'}" class="empty-top">
    <view class="empty-wrap"></view>
    <view class="empty-top-main"></view>
  </view>
</template>

<script>
export default {
  props: {
    type: {
      type: String,
      default() {
        return "relative";
      }
    }
  },
  data() {
    return {};
  }
};
</script>

<style scoped lang="scss">
.empty-top {
  &.absolute {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
  }
  background-color: $themeColor;
  .empty-wrap {
    height: var(--status-bar-height);
  }
}
</style>
